package com.qf.day02;

import java.util.Scanner;
/**
 * 案例:(要求选择A和a是一样的结果)选择A: 好评选择B: 一般选择C: 良好选择D: 差评
 */
public class SwithDemo1 {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入成绩");
        String grade = scanner.next();
        grade=grade.toUpperCase();
        switch (grade) {

            case "A":
                System.out.println("好评");
                break;

            case "B":
                System.out.println("一般");
                break;

            case "C":
                System.out.println("良好");
                break;

            case "D":
                System.out.println("差评");
                break;
            default:
                System.out.println("输入错误");
                break;
        }
    }
}
